Resource URL: /platform/<<version=3>>/hardware/tape/<name*>

    Overview: This resource applies to manage tape/changer devices rescan,
              modify and delete

     Methods: PUT, POST, DELETE

********************************************************************************

Method PUT: Tape/Changer device modify

       URL: PUT /platform/<<version=3>>/hardware/tape/<name*>

There are no query arguments for this method.

PUT request body schema:
{
  "type": "object", 
  "properties": {
    "state": {
      "enum": [
        "closed"
      ], 
      "type": "string", 
      "description": "Set the device state to close"
    }, 
    "name": {
      "type": "string", 
      "description": "The name of the device"
    }
  }
}

There is no JSON response body for this method.

********************************************************************************

Method POST: Tape/Changer devices rescan

        URL: POST /platform/<<version=3>>/hardware/tape/<name*>

Query arguments:
       lnn=<string> Logical node number.
     port=<integer> Scan only specified port.
   timeout=<number> Timeout for request.
reconcile=<boolean> Remove entries for devices or paths that have become
                    inaccessible.

POST request body schema:
{
  "type": [
    "null", 
    "object"
  ], 
  "description": "Null or any empty JSON object.", 
  "properties": {}
}

POST response body schema:
{
  "type": [
    {
      "additionalProperties": false, 
      "type": "object", 
      "description": "A list of errors that may be returned.", 
      "properties": {
        "errors": {
          "items": {
            "additionalProperties": false, 
            "type": "object", 
            "description": "An object describing a single error.", 
            "properties": {
              "field": {
                "type": "string", 
                "description": "The field with the error if applicable."
              }, 
              "message": {
                "type": "string", 
                "description": "The error message."
              }, 
              "code": {
                "type": "string", 
                "description": "The error code."
              }
            }
          }, 
          "type": "array"
        }
      }
    }, 
    {
      "type": "object", 
      "properties": {
        "total": {
          "type": "integer", 
          "description": "The total number of nodes responding."
        }, 
        "nodes": {
          "items": {
            "type": "object", 
            "description": "Rescan status output", 
            "properties": {
              "rescan_report": {
                "minItems": 0, 
                "items": {
                  "type": "object", 
                  "description": "per device rescan change status", 
                  "properties": {
                    "devicename": {
                      "type": "string", 
                      "description": "device name"
                    }, 
                    "wwnn": {
                      "type": "string", 
                      "description": "device node world wide name"
                    }, 
                    "product": {
                      "type": "string", 
                      "description": "device product name"
                    }, 
                    "path": {
                      "type": "string", 
                      "description": "device driver path"
                    }, 
                    "serial": {
                      "type": "string", 
                      "description": "device serial:L number"
                    }, 
                    "status_report": {
                      "type": "string", 
                      "description": "device change status"
                    }
                  }
                }, 
                "type": "array", 
                "description": "A list of device rescan status", 
                "maxItems": 4294967295
              }, 
              "status": {
                "required": false, 
                "minimum": 0, 
                "type": "integer", 
                "description": "Status of the HTTP response from this node if not 200.  If 200, this field does not appear.", 
                "maximum": 4294967295
              }, 
              "lnn": {
                "minimum": 0, 
                "type": "integer", 
                "description": "Logical node number of the node reporting this information.", 
                "maximum": 4294967295
              }, 
              "id": {
                "minimum": 0, 
                "type": "integer", 
                "description": "Node ID of the node reporting this information.", 
                "maximum": 4294967295
              }, 
              "error": {
                "required": false, 
                "type": "string", 
                "description": "Error message, if the HTTP status returned from this node was not 200."
              }
            }
          }, 
          "type": "array", 
          "description": "The responses from the individual nodes involved in this request."
        }, 
        "errors": {
          "items": {
            "type": "object", 
            "properties": {
              "status": {
                "minimum": 0, 
                "type": "integer", 
                "description": "HTTP Status code returned by this node.", 
                "maximum": 4294967295
              }, 
              "message": {
                "type": "string", 
                "description": "More detailed description of the error."
              }, 
              "code": {
                "type": "string", 
                "description": "The general meaning of the status code."
              }, 
              "lnn": {
                "minimum": 0, 
                "type": "integer", 
                "description": "Logical node number of the node reporting this error.", 
                "maximum": 4294967295
              }
            }
          }, 
          "type": "array", 
          "description": "A list of errors encountered by the individual nodes involved in this request, or an empty list if there were no errors."
        }
      }
    }
  ]
}

********************************************************************************

Method DELETE: Tape/Changer devices remove

          URL: DELETE /platform/<<version=3>>/hardware/tape/<name*>

There are no query arguments for this method.

There is no JSON response body for this method.
